//
//  ArticleItem.h
//  Inventory
//
//  Created by Marco Alanen on 2007-07-28.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import "Change.h"

@interface ArticleItem : NSObject <NSCoding>
{
	NSString *name;
	NSString *article_id;
	NSNumber *stock;
	NSNumber *price;
	NSMutableArray *changes;
}

-(NSString *) name;
-(NSString *) article_id;
-(NSNumber *) stock;
-(NSNumber *) price;

-(void) setName: (NSString *) newName;
-(void) setID: (NSString *) newID;
-(void) setStock: (NSNumber *) stock;
-(void) setPrice: (NSNumber *) price;

-(void) addChangeLogEntry:(ChangeAction)action value:(NSString *)value;

@end
